package de.fhaugsburg.games.boardgames.connect4.consoleui;

import de.fhaugsburg.games.boardgames.*;
import de.fhaugsburg.games.boardgames.scrabble.scrabbleboard.IPiece;

public class BoardView {
	private Board<IPiece, Object> board;

	public BoardView(Board<IPiece,Object> gameBoard) {
		this.board = gameBoard;
	}

	public void render() {
		System.out.print(this.board.toString());
		//print labels below the board
		for (int i = 0; i < board.getWidth(); i++) {
			System.out.print((i+1) + " ");
		}
		System.out.println();
		System.out.println();
	}
}